package cn.edu.scnu.semart.model.user;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("address")
public class Address {

    @TableId(value = "address_id", type = IdType.AUTO)
    private Integer addressId;

    private Integer userId;            // 所属用户
    private String recipient;       // 收件人
    private String phone;

    private String province;
    private String city;
    private String district;
    private String street;
    private String detail;

    private Boolean isDefault;      // 是否默认地址

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}